import { HYEventStore } from "hy-event-store"

const playerStore = new HYEventStore({
  state: {
    playListSongs: [],
    playListIndex: 0
  },
  actions: {
    playMusicWithSongId(ctx,_id) {
      ctx.playListIndex = _id
    },
    setPlayListSongs(ctx, _arr) {
      ctx.playListSongs = _arr || []
    }
  }
})

export default playerStore
